import request from '../util/request'

// 获取商品列表接口数据
export const fetchGoodsList = async (page = 1, pagesize = 8) => {
  return request.get(`/recommend?page=${page}&limit=${pagesize}`)
}

// 商品的图片接口
export const fetchGoodsImg = async (id) => {
  return request.get(`/getthumbimages/${id}`)
}
// 商品的基本信息接口
export const fetchGoodsInfo = async (id) => {
  return request.get(`/getgoodsinfo/${id}`)
}
